﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TerraLAN_Downloader
{
    public partial class FormLog : Form
    {
        //private Form1 form1;  
        public FormLog()
        {
            InitializeComponent();
            
        }

        //public void ShowDialog(Form1 form1){
        //    this.form1 = form1;
        //    ShowDialog();
        //}
        private void progressBar1_Click(object sender, EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void Form3_Load(object sender, EventArgs e)
        {
           
            //Cursor = Cursors.WaitCursor;
            //Application.UseWaitCursor = true;
          
        }

        private void Form3_FormClosed(object sender, FormClosedEventArgs e)
        {
            //Application.UseWaitCursor = false;
            //if (form1.backgroundWorker_refresh.IsBusy == true)
            //    form1.backgroundWorker_refresh.CancelAsync();

            //if (form1.backgroundWorker_download.IsBusy == true)
            //    form1.backgroundWorker_download.CancelAsync();
        }

        private void Form3_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (e.CloseReason == CloseReason.UserClosing)
            {
                this.Hide();
                e.Cancel=true;
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            textBoxLog.Text = "";
        }
    }
}
